package com.itcncp.wechat.app.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ItcsLaneInfoExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public ItcsLaneInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLaneIdIsNull() {
            addCriterion("lane_id is null");
            return (Criteria) this;
        }

        public Criteria andLaneIdIsNotNull() {
            addCriterion("lane_id is not null");
            return (Criteria) this;
        }

        public Criteria andLaneIdEqualTo(String value) {
            addCriterion("lane_id =", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotEqualTo(String value) {
            addCriterion("lane_id <>", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdGreaterThan(String value) {
            addCriterion("lane_id >", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdGreaterThanOrEqualTo(String value) {
            addCriterion("lane_id >=", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLessThan(String value) {
            addCriterion("lane_id <", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLessThanOrEqualTo(String value) {
            addCriterion("lane_id <=", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdLike(String value) {
            addCriterion("lane_id like", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotLike(String value) {
            addCriterion("lane_id not like", value, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdIn(List<String> values) {
            addCriterion("lane_id in", values, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotIn(List<String> values) {
            addCriterion("lane_id not in", values, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdBetween(String value1, String value2) {
            addCriterion("lane_id between", value1, value2, "laneId");
            return (Criteria) this;
        }

        public Criteria andLaneIdNotBetween(String value1, String value2) {
            addCriterion("lane_id not between", value1, value2, "laneId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIsNull() {
            addCriterion("toll_plaza_id is null");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIsNotNull() {
            addCriterion("toll_plaza_id is not null");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdEqualTo(String value) {
            addCriterion("toll_plaza_id =", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotEqualTo(String value) {
            addCriterion("toll_plaza_id <>", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdGreaterThan(String value) {
            addCriterion("toll_plaza_id >", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdGreaterThanOrEqualTo(String value) {
            addCriterion("toll_plaza_id >=", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLessThan(String value) {
            addCriterion("toll_plaza_id <", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLessThanOrEqualTo(String value) {
            addCriterion("toll_plaza_id <=", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdLike(String value) {
            addCriterion("toll_plaza_id like", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotLike(String value) {
            addCriterion("toll_plaza_id not like", value, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdIn(List<String> values) {
            addCriterion("toll_plaza_id in", values, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotIn(List<String> values) {
            addCriterion("toll_plaza_id not in", values, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdBetween(String value1, String value2) {
            addCriterion("toll_plaza_id between", value1, value2, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTollPlazaIdNotBetween(String value1, String value2) {
            addCriterion("toll_plaza_id not between", value1, value2, "tollPlazaId");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Byte value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Byte value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Byte value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Byte value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Byte value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Byte> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Byte> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Byte value1, Byte value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTidalTimeIsNull() {
            addCriterion("tidal_time is null");
            return (Criteria) this;
        }

        public Criteria andTidalTimeIsNotNull() {
            addCriterion("tidal_time is not null");
            return (Criteria) this;
        }

        public Criteria andTidalTimeEqualTo(String value) {
            addCriterion("tidal_time =", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeNotEqualTo(String value) {
            addCriterion("tidal_time <>", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeGreaterThan(String value) {
            addCriterion("tidal_time >", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeGreaterThanOrEqualTo(String value) {
            addCriterion("tidal_time >=", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeLessThan(String value) {
            addCriterion("tidal_time <", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeLessThanOrEqualTo(String value) {
            addCriterion("tidal_time <=", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeLike(String value) {
            addCriterion("tidal_time like", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeNotLike(String value) {
            addCriterion("tidal_time not like", value, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeIn(List<String> values) {
            addCriterion("tidal_time in", values, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeNotIn(List<String> values) {
            addCriterion("tidal_time not in", values, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeBetween(String value1, String value2) {
            addCriterion("tidal_time between", value1, value2, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andTidalTimeNotBetween(String value1, String value2) {
            addCriterion("tidal_time not between", value1, value2, "tidalTime");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNull() {
            addCriterion("direction is null");
            return (Criteria) this;
        }

        public Criteria andDirectionIsNotNull() {
            addCriterion("direction is not null");
            return (Criteria) this;
        }

        public Criteria andDirectionEqualTo(Byte value) {
            addCriterion("direction =", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotEqualTo(Byte value) {
            addCriterion("direction <>", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThan(Byte value) {
            addCriterion("direction >", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionGreaterThanOrEqualTo(Byte value) {
            addCriterion("direction >=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThan(Byte value) {
            addCriterion("direction <", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionLessThanOrEqualTo(Byte value) {
            addCriterion("direction <=", value, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionIn(List<Byte> values) {
            addCriterion("direction in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotIn(List<Byte> values) {
            addCriterion("direction not in", values, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionBetween(Byte value1, Byte value2) {
            addCriterion("direction between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andDirectionNotBetween(Byte value1, Byte value2) {
            addCriterion("direction not between", value1, value2, "direction");
            return (Criteria) this;
        }

        public Criteria andDelIsNull() {
            addCriterion("del is null");
            return (Criteria) this;
        }

        public Criteria andDelIsNotNull() {
            addCriterion("del is not null");
            return (Criteria) this;
        }

        public Criteria andDelEqualTo(Byte value) {
            addCriterion("del =", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotEqualTo(Byte value) {
            addCriterion("del <>", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelGreaterThan(Byte value) {
            addCriterion("del >", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelGreaterThanOrEqualTo(Byte value) {
            addCriterion("del >=", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelLessThan(Byte value) {
            addCriterion("del <", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelLessThanOrEqualTo(Byte value) {
            addCriterion("del <=", value, "del");
            return (Criteria) this;
        }

        public Criteria andDelIn(List<Byte> values) {
            addCriterion("del in", values, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotIn(List<Byte> values) {
            addCriterion("del not in", values, "del");
            return (Criteria) this;
        }

        public Criteria andDelBetween(Byte value1, Byte value2) {
            addCriterion("del between", value1, value2, "del");
            return (Criteria) this;
        }

        public Criteria andDelNotBetween(Byte value1, Byte value2) {
            addCriterion("del not between", value1, value2, "del");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}